package com.info.zhiduoduo.repository.entity.crowdsource;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @program: zhiduoduo
 * @author: LiTong
 * @create: 2020-11-22 19:30
 **/

@Data
@Accessors(chain = true)
@TableName("zdd_crowdsource_company_party")
public class CrowdsourceCompanyParty extends Model<CrowdsourceCompanyParty> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 甲方企业名称
     */
    @TableField("company_name")
    private String companyName;

    /**
     * 纳税人识别号
     */
    @ApiModelProperty("纳税人识别号")
    @TableField("taxpayer_identification_number")
    private String taxpayerIdentificationNumber;

    /**
     * 企业地址
     */
    @TableField("company_address")
    private String companyAddress;

    /**
     * 企业联系电话
     */
    @TableField("company_contact_number")
    private String companyContactNumber;

    /**
     * 开户行
     */
    @TableField("bank_of_deposit")
    private String bankOfDeposit;

    /**
     * 银行卡号
     */
    @TableField("bank_card_number")
    private String bankCardNumber;

    /**
     * 发票邮寄地址
     */
    @TableField("invoice_mailing_address")
    private String invoiceMailingAddress;

    /**
     * 收件人
     */
    @ApiModelProperty("收件人")
    @TableField("addressee")
    private String addressee;

    /**
     * 收件人电话
     */
    @TableField("addressee_phone")
    private String addresseePhone;

    /**
     * 金蝶客户编码
     */
    @TableField("kingdee_customer_code")
    private String kingdeeCustomerCode;

    /**
     * 金蝶组织代码
     */
    @TableField("organization_code")
    private String organizationCode;

    /**
     * 电子收件邮箱
     */
    @TableField("electronic_mail_box")
    private String electronicMailBox;

    @ApiModelProperty("法人")
    @TableField("realname")
    private String realname;

    @ApiModelProperty("合同-开户行")
    @TableField("contract_bank_name")
    private String contractBankName;

    @ApiModelProperty("合同-户行账号")
    @TableField("contract_bank_no")
    private String contractBankNo;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
